<template>
  <div>
    <h1 v-text="msg"></h1>
    <h2>老师姓名：{{name}}</h2>
    <h2>老师性别：{{sex}}</h2>
    <h2>老师年龄：{{age+1}}</h2>
  </div>
</template>

<script>
    export default {
        name: "MyTeacher",
      data(){
          return{
            msg:"欢迎来学习Vue"
          }
      },
      props:['name','sex','age']
    }
</script>

<style scoped>

</style>
